# @Author:      me
# 文件创建日期:    2023-07-05 16:28
# 当前文件:       workspace/api_demo.py
if __name__ == "__main__":
    s = '01234567890'
    s1 = 'abcdefghijklmn'
    url = "https://chat.openai.cn/c/091a7ebc-c335-4344-954c-05d0ad7586fb"

    s2 = s.replace('012', '零一二', 1)

    s1_find = s2.find("0")
    s1_find = s2.index("0")
    count = s.count('0')
    url= url.split('/')

    print("协议是",url[0])
    print("域名是",url[2])
    print("映射是",url[3]+"/"+url[4])

    domainName = url[2]

    is_end = domainName.endswith(".com")

    print(is_end)


    s_big = s1.upper()

    print(s_big)

    print(s1_find)
    print(count)


#练习所有的api
#1.敲7
#2.密码加密--解密

